package com.business.user.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.BaseMapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.business.user.entity.Message;
import com.business.user.entity.vo.MessageVo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

/**
 * 消息表:数据层
 * @author chenjiehong
 * @date 2019-11-29 14:28:27
 * @since 1.0
 */
public interface MessageMapper extends BaseMapper<Message> {

    List<MessageVo> queryPage(@Param("page") Page page,@Param("ew") Wrapper wrapper);


    List<MessageVo> queryPageByOwn(@Param("page") Page page,@Param("ew") Wrapper wrapper);

    List<Map<String,Integer>> getCountByType(@Param("userId")Integer userId);

}
